#ifndef PAINT_H
#define PAINT_H

#define BLACK rgb(0x00, 0x00, 0x00)
#define WHITE rgb(0xff, 0xff, 0xff)
#define GRAY  rgb(0x80, 0x80, 0x80)
#define RED   rgb(0xff, 0x00, 0x00)
#define GREEN rgb(0x00, 0xff, 0x00)
#define BLUE  rgb(0x00, 0x00, 0xff)

extern int fb_width;
extern int fb_height;
extern int fb_depth;
extern int fb_bpp;

extern unsigned char *fbp;

extern unsigned long rgb(unsigned char, unsigned char, unsigned char);
extern void set_color(unsigned int);

extern void open_fb();
extern void close_fb();

extern void pixel(int, int);
extern void line(int, int, int, int);
extern void rectangle(int, int, int, int);
extern void circle(int, int, int);

#endif
